package com.chenyongjing.design.pattern.proxy.staticProxy;

/**
 * 组合
 */
public class Proxy  implements Rent{
    private Host host;

    public Proxy() {
    }

    public Proxy(Host host) {
        this.host = host;
    }

    @Override
    public void rent() {
        host.rent();
    }
    // 看房
    public void seeHouse(){
        System.out.println("中介带看房");
    }
    //收中介费
    public void fare(){
        System.out.println("中介收费");
    }
}
